\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy}{\section{\-Rest\-A\-P\-I.\-amazon.\-S3.\-Bucket\-Policy \-Class \-Reference}
\label{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy}\index{\-Rest\-A\-P\-I.\-amazon.\-S3.\-Bucket\-Policy@{\-Rest\-A\-P\-I.\-amazon.\-S3.\-Bucket\-Policy}}
}


\-The \-Configuration of bucket for reading\&writting access control.  


\-Inheritance diagram for \-Rest\-A\-P\-I.\-amazon.\-S3.\-Bucket\-Policy\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy}
\end{center}
\end{figure}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_af7cf902f0c9183b395842e5228ec4037}{def {\bfseries \-\_\-\-\_\-init\-\_\-\-\_\-}}\label{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_af7cf902f0c9183b395842e5228ec4037}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_afc5744d8cadd90e3cd0349c6cb38733f}{def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_afc5744d8cadd90e3cd0349c6cb38733f}{list}}\label{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_afc5744d8cadd90e3cd0349c6cb38733f}

\begin{DoxyCompactList}\small\item\em \-List the rules in the configuration. \end{DoxyCompactList}\item 
def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_a7eabecdb1721fc36e997fb7c0becb98b}{applyto}
\begin{DoxyCompactList}\small\item\em \-Restrict the resource to be accessed. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_a735d0bd2b76432dbc4eb0a7e456f31f8}{def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_a735d0bd2b76432dbc4eb0a7e456f31f8}{when}}\label{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_a735d0bd2b76432dbc4eb0a7e456f31f8}

\begin{DoxyCompactList}\small\item\em \-Restrict the request conditions. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_a849f41bd6b4bfb7ceab6a12471de8d14}{def {\bfseries \-\_\-\-\_\-\-Add\-String\-Condition\-\_\-\-\_\-}}\label{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_a849f41bd6b4bfb7ceab6a12471de8d14}

\item 
def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_aece588f207428096b58676d4fa826646}{update\-Policy}
\begin{DoxyCompactList}\small\item\em \-Update the specified restraint and create a new policy. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_aaf8a028822a10f53b69da32f36aa0745}{def {\bfseries allow}}\label{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_aaf8a028822a10f53b69da32f36aa0745}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_a8826fb7ac7165337d52ae68d121a80ce}{def {\bfseries deny}}\label{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_a8826fb7ac7165337d52ae68d121a80ce}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_abc524d6051ea3a9e35d79e909bc300a0}{def {\bfseries \-\_\-\-\_\-json\-\_\-\-\_\-}}\label{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_abc524d6051ea3a9e35d79e909bc300a0}

\item 
def \hyperlink{classRestAPI_1_1amazon_1_1service_1_1AWSConfiguration_a4683d9d74953a88fa88139138acf338f}{headers}
\begin{DoxyCompactList}\small\item\em \-Returns the request headers need to be added to the \-A\-W\-S request. \end{DoxyCompactList}\item 
def \hyperlink{classRestAPI_1_1amazon_1_1service_1_1AWSConfiguration_a29a95f6203ff8126fdfae6936a768e40}{content}
\begin{DoxyCompactList}\small\item\em \-Returns the request body need to be sent through \-A\-W\-S requests. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{\-Public \-Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_a6899e1cfc6316836dd9203db7ce86edf}{{\bfseries data}}\label{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_a6899e1cfc6316836dd9203db7ce86edf}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_a680581402d82a3fd9415409c93b5ecbc}{{\bfseries newpolicies}}\label{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_a680581402d82a3fd9415409c93b5ecbc}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_a5130b3966b4f75e9f8c8482d15830d78}{{\bfseries newpolicy}}\label{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_a5130b3966b4f75e9f8c8482d15830d78}

\end{DoxyCompactItemize}
\subsection*{\-Static \-Public \-Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_ad9a1eceb75789ebbe4935a5f2021b88c}{\hyperlink{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_afc5744d8cadd90e3cd0349c6cb38733f}{list} {\bfseries \-A\-C\-T\-I\-O\-N\-S} = \mbox{[}'\-Get\-Object','\-Get\-Object\-Version','\-Put\-Object','\-Get\-Object\-Acl','\-Get\-Object\-Version\-Acl'\mbox{]}}\label{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_ad9a1eceb75789ebbe4935a5f2021b88c}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_a35c5e6f64e9388c5c68cb7d95028ddb6}{\hyperlink{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_afc5744d8cadd90e3cd0349c6cb38733f}{list} {\bfseries \-S3\-C\-O\-N\-D\-I\-T\-I\-O\-N\-S} = \mbox{[}$\,$\mbox{]}}\label{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_a35c5e6f64e9388c5c68cb7d95028ddb6}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_aac80c0a476b40667974a642aee69d0b5}{\hyperlink{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_afc5744d8cadd90e3cd0349c6cb38733f}{list} {\bfseries \-C\-O\-N\-D\-I\-T\-I\-O\-N\-S} = \mbox{[}'\-Current\-Time','\-Multi\-Factor\-Auth\-Age','\-Secure\-Transport','\-Source\-Ip','\-User\-Agent','\-Epoch\-Time','\-Referer'\mbox{]}}\label{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_aac80c0a476b40667974a642aee69d0b5}

\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-The \-Configuration of bucket for reading\&writting access control. 

\subsection{\-Member \-Function \-Documentation}
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_a7eabecdb1721fc36e997fb7c0becb98b}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Bucket\-Policy@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Bucket\-Policy}!applyto@{applyto}}
\index{applyto@{applyto}!RestAPI::amazon::S3::BucketPolicy@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Bucket\-Policy}}
\subsubsection[{applyto}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-S3.\-Bucket\-Policy.\-applyto} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{resource}
\end{DoxyParamCaption}
)}}\label{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_a7eabecdb1721fc36e997fb7c0becb98b}


\-Restrict the resource to be accessed. 

\hypertarget{classRestAPI_1_1amazon_1_1service_1_1AWSConfiguration_a29a95f6203ff8126fdfae6936a768e40}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Bucket\-Policy@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Bucket\-Policy}!content@{content}}
\index{content@{content}!RestAPI::amazon::S3::BucketPolicy@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Bucket\-Policy}}
\subsubsection[{content}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-service.\-A\-W\-S\-Configuration.\-content} (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}\label{classRestAPI_1_1amazon_1_1service_1_1AWSConfiguration_a29a95f6203ff8126fdfae6936a768e40}


\-Returns the request body need to be sent through \-A\-W\-S requests. 



\-Reimplemented in \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1VersionControl_ae76dd376699b52a0b9de215f47793da3}{\-Rest\-A\-P\-I.\-amazon.\-S3.\-Version\-Control}, \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1BucketLogging_a28b00b511c62b0122a6c30e5777b2ad8}{\-Rest\-A\-P\-I.\-amazon.\-S3.\-Bucket\-Logging}, and \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1LifeCycleRules_aa30745478c6bbb3daa1ba693a442c45a}{\-Rest\-A\-P\-I.\-amazon.\-S3.\-Life\-Cycle\-Rules}.

\hypertarget{classRestAPI_1_1amazon_1_1service_1_1AWSConfiguration_a4683d9d74953a88fa88139138acf338f}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Bucket\-Policy@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Bucket\-Policy}!headers@{headers}}
\index{headers@{headers}!RestAPI::amazon::S3::BucketPolicy@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Bucket\-Policy}}
\subsubsection[{headers}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-service.\-A\-W\-S\-Configuration.\-headers} (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}\label{classRestAPI_1_1amazon_1_1service_1_1AWSConfiguration_a4683d9d74953a88fa88139138acf338f}


\-Returns the request headers need to be added to the \-A\-W\-S request. 



\-Reimplemented in \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1VersionControl_ade9eec662e9081f233a4cc017a971515}{\-Rest\-A\-P\-I.\-amazon.\-S3.\-Version\-Control}.

\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_aece588f207428096b58676d4fa826646}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Bucket\-Policy@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Bucket\-Policy}!update\-Policy@{update\-Policy}}
\index{update\-Policy@{update\-Policy}!RestAPI::amazon::S3::BucketPolicy@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Bucket\-Policy}}
\subsubsection[{update\-Policy}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-S3.\-Bucket\-Policy.\-update\-Policy} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{allow, }
\item[{}]{actions, }
\item[{}]{users = {\ttfamily \{\}}}
\end{DoxyParamCaption}
)}}\label{classRestAPI_1_1amazon_1_1S3_1_1BucketPolicy_aece588f207428096b58676d4fa826646}


\-Update the specified restraint and create a new policy. 



\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
amazon/\-S3.\-py\end{DoxyCompactItemize}
